package com.csap.framework.apidoc;

import com.csap.mybatisplus.core.conditions.CloneEntity;
import com.csap.mybatisplus.core.toolkit.LambdaUtils;
import com.csap.mybatisplus.core.toolkit.support.SFunction;
import com.csap.mybatisplus.core.toolkit.support.SerializedLambda;
import org.springframework.util.AntPathMatcher;
import org.testng.annotations.Test;

import java.util.Arrays;
import java.util.List;

/**
 * @author yangchengfu
 * @description
 * @dataTime 2020年-04月-05日 21:54:00
 **/
public class Labma {
    @Test
    public void x() {
        AntPathMatcher antPathMatcher = new AntPathMatcher();
        List<String> list = Arrays.asList();
        System.out.println(list.stream().anyMatch(i -> antPathMatcher.match(i, "/user/bn")));
        String string = "http://qx-user";
        String string2 = "http://qx-user/user";
        String string1[] = string.split("/");
        System.out.println(string1);
    }

    public <T extends CloneEntity> String lab(Object val, SFunction<T, ?> column) {
        SerializedLambda serializedLambda = LambdaUtils.resolve(column);
        System.out.println(serializedLambda.getTableName());
        return null;
    }
}
